package two.chapter_1.c1_3;

import edu.princeton.cs.algs4.StdOut;


public class Ex1_3_50 {

    public static void main(String[] args) {

        Stack<String> stack=new LinkStack<>();
        stack.push("a");
        stack.push("b");
        for (String s:stack){
            StdOut.println(s);
            stack.push("c");//Exception in thread "main" java.util.ConcurrentModificationException
        }
    }




}
